package com.company;

public class Mythread2 implements Runnable{
    @Override
    public void run() {
        try {
            for (int i = 0; i < 10; i++) {
                Thread.sleep(1000);
                System.out.println("子线程2运行");
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
